home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / zcpp_jae.zip / MACRO.H < prev    next >
C/C++ Source or Header  |  1990-07-06  |  893b  |  36 lines

  1. /*
  2.  
  3.  
  4.  Copyright (C) 1990 Texas Instruments Incorporated.
  5.  
  6.  Permission is granted to any individual or institution to use, copy, modify,
  7.  and distribute this software, provided that this complete copyright and
  8.  permission notice is maintained, intact, in all copies and supporting
  9.  documentation.
  10.  
  11.  Texas Instruments Incorporated provides this software "as is" without
  12.  express or implied warranty.
  13.  
  14.  
  15.  *
  16.  * Edit history
  17.  * Created: LGO 30-Mar-89 -- Initial design and implementation.
  18.  *
  19.  * MACRO defmacro
  20. */
  21.  
  22. typedef enum {p_positional, p_key, p_rest, p_body} Type;
  23.  
  24. typedef enum {mod_none, mod_quote, mod_unquote, mod_concat} Modifier;
  25.  
  26. typedef struct arg {
  27.   struct arg* next;
  28.   char* name;
  29.   char* value;
  30.   Type type;
  31. } Arg;
  32.  
  33. extern Arg arg_error;                  /* Global error flag */
  34.  
  35. extern Arg* macro_args(/* char* macname */);      /* parse macro arguments */
  36.